<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入LayUi.css -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入当前页面样式 -->
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- logo部分 -->
    <div class="layui-main">
        <img src="/assets/images/logo.png" alt="">
    </div>

    <!-- 注册登录 -->
    <div class="login-register">
        <!-- 标题 -->
        <div class="title-box"></div>
        <!-- 登录 -->
        <div class="login-box">
            <!-- 注意: layui-form这个类名, 将来用来校验表单生效 -->
            <form class="layui-form" id="formLogin" action="">

                <!-- 用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input value="goudan9420" type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input value="94263232" type="password" name="password" required lay-verify="required|password" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 按钮 -->
                <div class="layui-form-item">
                    <!-- 注意: type 属性没写, 默认submit -->
                    <!-- 注意: layui-submit 是属性, 后面校验的时候生效 -->
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">登录</button>
                </div>

                <!-- a链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去注册账号</a>
                </div>
            </form>

        </div>

        <!-- 注册 -->
        <div class="reg-box" style="display: none;">

            <!-- 注意: layui-form这个类名, 将来用来校验表单生效 -->
            <form class="layui-form" id="formReg" action="">

                <!-- 用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="password" name="password" required lay-verify="required|password" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 确认密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="password" name="repassword" required lay-verify="required|repwd" placeholder="请再次输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 按钮 -->
                <div class="layui-form-item">
                    <!-- 注意: type 属性没写, 默认submit -->
                    <!-- 注意: layui-submit 是属性, 后面校验的时候生效 -->
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">注册</button>
                </div>

                <!-- a链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去登录</a>
                </div>
            </form>

        </div>
    </div>

    <!-- 引入axios -->
    <script src="/assets/lib/axios.js"></script>
    <!-- 引入common.js -->
    <script src="/assets/js/common.js"></script>
    <!-- 引入Layui -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 引入JQ -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 引入自己的js -->
    <script src="/assets/js/login.js"></script>
</body>

</html>